using System;
using System.Collections.Generic;

namespace UserManagementService.DTOs;

/// <summary>
/// 组织导入结果DTO
/// </summary>
public class OrganizationImportResultDto
{
    /// <summary>
    /// 总数量
    /// </summary>
    public int TotalCount { get; set; }

    /// <summary>
    /// 成功数量
    /// </summary>
    public int SuccessCount { get; set; }

    /// <summary>
    /// 失败数量
    /// </summary>
    public int FailedCount { get; set; }

    /// <summary>
    /// 成功列表
    /// </summary>
    public List<OrganizationImportSuccessDto> SuccessList { get; set; } = new List<OrganizationImportSuccessDto>();

    /// <summary>
    /// 失败列表
    /// </summary>
    public List<OrganizationImportErrorDto> ErrorList { get; set; } = new List<OrganizationImportErrorDto>();

    /// <summary>
    /// 导入时间
    /// </summary>
    public DateTime ImportTime { get; set; } = DateTime.Now;
}

/// <summary>
/// 组织导入成功DTO
/// </summary>
public class OrganizationImportSuccessDto
{
    /// <summary>
    /// 行号
    /// </summary>
    public int RowNumber { get; set; }

    /// <summary>
    /// 组织名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 组织ID
    /// </summary>
    public Guid OrganizationId { get; set; }

    /// <summary>
    /// 消息
    /// </summary>
    public string Message { get; set; }
}

/// <summary>
/// 组织导入错误DTO
/// </summary>
public class OrganizationImportErrorDto
{
    /// <summary>
    /// 行号
    /// </summary>
    public int RowNumber { get; set; }

    /// <summary>
    /// 组织名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 错误信息
    /// </summary>
    public string ErrorMessage { get; set; }
}